package com.alangyun.remind.repository.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("alangyun-talent-cautions")
public class TalentDataset extends AbstractDataset {
	/** 导入日期 * */
	@XStreamAlias("import-date")
	@XStreamAsAttribute
	private Date impDate;
	/** 用户 * */
	@XStreamAlias("users")
	private List<TalentCaution> datas;
	/** 部门组织（包括单位、部门、班组） * */
	@XStreamAlias("teams")
	private List<NameTerm> teams;
	/** 专业技能类别 * */
	@XStreamAlias("profs")
	private List<NameTerm> profs;
	/** 工作岗位 * */
	@XStreamAlias("duties")
	private List<NameTerm> jobs;

	public Date getImpDate() {
		return impDate;
	}

	public void setImpDate(Date impDate) {
		this.impDate = impDate;
	}

	public List<TalentCaution> getDatas() {
		return datas;
	}

	public void setDatas(List<TalentCaution> datas) {
		this.datas = datas;
	}

	public List<NameTerm> getTeams() {
		return teams;
	}

	public void setTeams(List<NameTerm> teams) {
		this.teams = teams;
	}

	public List<NameTerm> getProfs() {
		return profs;
	}

	public void setProfs(List<NameTerm> profs) {
		this.profs = profs;
	}

	public List<NameTerm> getJobs() {
		return jobs;
	}

	public void setJobs(List<NameTerm> jobs) {
		this.jobs = jobs;
	}

	public static TalentDataset create() {
		TalentDataset ret = new TalentDataset();
		ret.impDate = new Date();
		ret.datas = new ArrayList<>();
		ret.teams = new ArrayList<>();
		ret.profs = new ArrayList<>();
		ret.jobs = new ArrayList<>();
		
		return ret;
	}
}
